/**
 * 
 */
package edu.pw.treegrid.server.filter;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

import edu.pw.treegrid.server.query.QueryTree;
import edu.pw.treegrid.server.reportmodel.Report;

/** 
 * @author Piotrek
 */
public interface Filter {

	/** 
	 * @param queryTree
	 * @param sb
	 */
	public void generateWhere(QueryTree queryTree, StringBuilder sb);

	public Element serializeToXML(Document document);
	
	public String getXMLElementName();

	public void deserializeFromXML(Element filterElement,
			Report report);
}